package com.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import com.dao.ThrdMapper;
import com.model.Thrd;


@Service("thrdService")
public class ThrdServiceImpl implements ThrdServiceI {

	private ThrdMapper thrdMapper;

	public ThrdMapper getThrdMapper() {
		return thrdMapper;
	}

	@Autowired
	public void setThrdMapper(ThrdMapper thrdMapper) {
		this.thrdMapper = thrdMapper;
	}

	@Override
	public Thrd getThrdByThrdid(Integer thrdid) {
		// TODO Auto-generated method stub
		return thrdMapper.selectByPrimaryKey(thrdid);
	}

	@Override
	public List<Thrd> getthrdls() {
		// TODO Auto-generated method stub
		return thrdMapper.getthrdls();
	}

	@Override
	public void updatethrd(Thrd thrd) {
		// TODO Auto-generated method stub
		thrdMapper.updateByPrimaryKey(thrd);
	}

}
